import request from '@/utils/request'

let shopperApi = {

  /*添加配送员*/
  addShopper(data, errorback) {
    return request._post('/shop/shopper.shopper/add', data, errorback);
  },

  /*配送员详情*/
  ShopperDetail(data, errorback) {
    return request._get('/shop/shopper.shopper/edit', data, errorback);
  },

  
  /*配送员编辑*/
  editShopper(data, errorback) {
    return request._post('/shop/shopper.shopper/edit', data, errorback);
  },

  /*删除配送员*/
  deleteShopper(data, errorback) {
    return request._post('/shop/shopper.shopper/delete', data, errorback);
  },

  /*配送员列表*/
  shopperlist(data, errorback) {
    return request._post('/shop/shopper.shopper/index', data, errorback);
  },


  /*小区选择列表*/
  villageLists(data, errorback) {
    return request._post('/shop/shopper.shopper/getVillageList', data, errorback);
  },

  

}

export default shopperApi;
